/* styles.css */

/* 基本样式 */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    color: #333;
}

/* 标题样式 */
h1 {
    color: #ff5900;
    text-align: center;
    margin-bottom: 20px;
}
h2 {
    color: #0051ff;
    text-align: center;
    margin-bottom: 20px;
}

/* 列表样式 */
ol {
    list-style-type: decimal;
    padding-left: 20px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    padding: 20px;
}

ol li {
    margin-bottom: 10px;
    color: #555;
}

/* 段落样式 */
p {
    margin-bottom: 10px;
    color: #555;
}

/* 链接样式 */
a {
    color: #0051ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 导航栏样式 */
header nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    background-color: #0051ff;
    padding: 10px;
    border-radius: 5px;
}

header nav ul li {
    margin: 0 10px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

header nav ul li a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    h1, h2 {
        font-size: 1.5em;
    }
    ol {
        padding-left: 10px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

h1, h2 {
    animation: fadeIn 1s ease-in-out;
}

ol li {
    animation: fadeIn 0.5s ease-in-out;
}

/* 表单样式 */
form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

form input, form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background-color: #0051ff;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

form button:hover {
    background-color: #003d99;
}

/* 脚注样式 */
footer {
    margin-top: 20px;
    padding: 20px;
    background-color: #ff9100;
    color: #ffdd00;
    text-align: center;
    border-radius: 5px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    display: inline-block;
    margin-right: 10px;
}

footer ul li a {
    color: #fff;
    text-decoration: none;
}

footer ul li a:hover {
    text-decoration: underline;
}
